<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script language=JavaScript>
<!--
function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script> 

<script type="text/JavaScript" src="${RESOURCE}/callscreening/scripts/CallScreening_normal.js"></script>
<script type="text/JavaScript" src="${RESOURCE}/callscreening/scripts/CallScreening_white.js"></script>
<script language="javascript">
	var MSG_W_05 = "<!--SVLT.VAR:MSG_W_05-->";
	var MSG_W_08 = "<!--SVLT.VAR:MSG_W_08-->";
	var MSG_W_09 = "<!--SVLT.VAR:MSG_W_09-->";
	var MSG_W_11 = "<!--SVLT.VAR:MSG_W_11-->";
	var MSG_W_12 = "<!--SVLT.VAR:MSG_W_12-->";
	var MSG_W_13 = "<!--SVLT.VAR:MSG_W_13-->";
	var MSG_W_21 = "<!--SVLT.VAR:MSG_W_21-->";
	var MSG_W_22 = "<!--SVLT.VAR:MSG_W_22-->";
	var MSG_W_23 = "<!--SVLT.VAR:MSG_W_23-->";
	var MSG_W_24 = "<!--SVLT.VAR:MSG_W_24-->";
	var MSG_W_25 = "<!--SVLT.VAR:MSG_W_25-->";
	var MSG_W_26 = "<!--SVLT.VAR:MSG_W_26-->";
	var MSG_W_27 = "<!--SVLT.VAR:MSG_W_27-->";
	var MSG_W_29 = "<!--SVLT.VAR:MSG_W_29-->";
	var MSG_W_30 = "<!--SVLT.VAR:MSG_W_30-->";

//##### General Function #####
	var win = null;
	var tar = null;
	var DAY_DESC = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday".split(",");		//For english template
	//var DAY_DESC = "จันทร์,อังคาร,พุธ,พฤหัสบดี,ศุกร์,เสาร์,อาทิตย์".split(",");				//For thai template
	var MSG_CANCEL = "You wish to unsubscribe this service? <br>Please press 'OK' to confirm.";		//For english template
	//var MSG_CANCEL = "คุณเลือกยกเลิกการใช้บริการ <br>กรุณากด 'ตกลง' เพื่อยืนยันการทำรายการค่ะ";	//For thai template

	function getSchedule(dateList, timeList){
		var desc = "";
		var dateDesc = "";
		var timeDesc = "";
		var bAllTime = false;
		
		if (dateList != ""){
			if (dateList.indexOf("Monday") > -1){
				dateDesc += DAY_DESC[0] + " ";
			}
			if (dateList.indexOf("Tuesday") > -1){
				dateDesc += DAY_DESC[1] + " ";
			}
			if (dateList.indexOf("Wednesday") > -1){
				dateDesc += DAY_DESC[2] + " ";
			}
			if (dateList.indexOf("Thursday") > -1){
				dateDesc += DAY_DESC[3] + " ";
			}
			if (dateList.indexOf("Friday") > -1){
				dateDesc += DAY_DESC[4] + " ";
			}
			if (dateList.indexOf("Saturday") > -1){
				dateDesc += DAY_DESC[5] + " ";
			}
			if (dateList.indexOf("Sunday") > -1){
				dateDesc += DAY_DESC[6] + " ";
			}
			dateDesc = genDataSeparate(dateDesc);
		}

		if (timeList != ""){
			var arr = timeList.split(",");
			for (var i = 0; i < arr.length; i++){
				var tmp = arr[i].split("-");
				if (tmp.length == 2){
					var v1 = parseInt(tmp[0]);
					var v2 = parseInt(tmp[1]);
					if ( (v1==0) && (v2==48) )
						bAllTime = true;
					if (timeDesc != "")
						timeDesc += ", ";
					timeDesc += getTimeFromIndex(v1) + "-" + getTimeFromIndex(v2);
				}
			}

			if (arr.length==2){
				var subArr = arr[0].split("-");
				var time1 = parseInt(subArr[0]);
				var time2 = parseInt(subArr[1]);

				var subArr2 = arr[1].split("-");
				var time3 = parseInt(subArr2[0]);
				var time4 = parseInt(subArr2[1]);

				if (time1 < time3){
					if (time2==time3){
						timeDesc = getTimeFromIndex(time1) + "-" + getTimeFromIndex(time4);
					}
				}else{
					if (time4==time1){
						timeDesc = getTimeFromIndex(time3) + "-" + getTimeFromIndex(time2);
					}
				}
			}
		}
		
		if (dateDesc != ""){
			desc = " " + dateDesc;
		}
		if (timeDesc != ""){
			if (timeDesc == "00.00-24.00"){
				timeDesc = ",all day";
			}
			if (desc != "")
				desc += " ";
			desc += timeDesc;
		}
		if (desc != ""){
			desc = " " + desc;
		}

		return desc;
	}

	function genDataSeparate(value){
		var arr = value.split(" ");
		var len = arr.length - 1;
		var tmp = "";
		for (var i = 0; i < len; i++){
			if (i > 0){
				if ( (i+1) >= len){
					tmp += " and ";
				}else{
					tmp += " ";
				}
			}
			tmp += arr[i];
		}
		return tmp;
	}

//##### White Mode Function #####
	function W_DisplayPhone(PhoneEdit){
		var TableHTML = "<table width='90%' border='0' align='center' cellpadding='8' cellspacing='2'>";

		var list = document.form1.W_PhoneList.value;
		var tmp = 0;
		if (list != ''){
			var arr = list.split(",");
			for (var i = 0; i < arr.length; i++){
				tmp = i % 4;
				if (tmp==0){
					TableHTML += "<tr><td bgcolor='#E1E1E1' width='50%'>&nbsp;&nbsp;";
				}else if (tmp==1){
					TableHTML += "<td bgcolor='#E1E1E1' width='50%'>&nbsp;&nbsp;";
				}else if (tmp==2){
					TableHTML += "<tr><td width='50%'>&nbsp;&nbsp;";
				}else if (tmp==3){
					TableHTML += "<td width='50%'>&nbsp;&nbsp;";
				}
				if (PhoneEdit==arr[i]){
					TableHTML += (i+1) + ". <input type='text' name='W_txtEditPhone' size='11' maxlength='10' onkeyup='onlyNumber(this);' onblur='onlyNumber(this);' value='" + arr[i] + "'>";
					TableHTML += "&nbsp;&nbsp;<a href='javascript:W_EditPhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/14_webservice_submit.gif' border='0'></a>";
					TableHTML += "&nbsp;<a href='javascript:W_DisplayPhone(\"\")'><img src='${RESOURCE}/eng/images/14_webservice_cancel.gif' border='0'></a></td>";
				}else{
					TableHTML += (i+1) + ". " + genSpace(arr[i], i);
					TableHTML += "&nbsp;&nbsp;<a href='javascript:W_DisplayPhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/04_station_credit_edit_s.gif' border='0'></a>";
					TableHTML += "&nbsp;<a href='javascript:W_DeletePhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/04_station_credit_delete.gif' border='0'></a></td>";
				}

			}
			--i;
			tmp = i % 4;
			if (tmp==0){
				TableHTML += "<td bgcolor='#E1E1E1' width='50%'>&nbsp;&nbsp;</td>";
			}else if (tmp==2){
				TableHTML += "<td width='50%'>&nbsp;&nbsp;</td>";
			}
		}
		TableHTML += "</table>";
		var oDiv = document.getElementById("W_Phone");
		oDiv.innerHTML = TableHTML;
		W_ControlPhoneButton();
	}

	function W_Submit2(){
		var d = document.form1;
		if (d.CanSave.value != "Y")
			return;
		
		d.mode.value = "W";

		var W_PhoneList = d.W_PhoneList.value;
		var B_PhoneList = d.B_PhoneList.value;

		var W_DateList = "";
		var W_TimeList = "";
		var B_DateList = d.Schedule_B_DateList.value;
		var B_TimeList = d.Schedule_B_TimeList.value;

		var isPhoneListEmpty = true;
		var isSchedule = d.W_Schedule[1].checked;
		var isConflict = false;
		var ProgramMode = d.ProgramMode.value;

		if (d.W_PhoneList.value!=""){
			isPhoneListEmpty = false;
		}

		if (isSchedule){
			isConflict = W_Is_Conflict();
			W_DateList = W_GetScheduleDateList();
			W_TimeList = W_GetScheduleTimeList();

			if (isSelectFullTime(W_DateList, W_TimeList)){
				isSchedule = false;
				W_DateList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday";
				W_TimeList = "0-48";
			}
		}else{
			W_DateList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday";
			W_TimeList = "0-48";
		}
		
		var newProgramMode = "";
	
		if ( (ProgramMode=="I") || (ProgramMode=="W") || (ProgramMode=="SW") ){
			if (isPhoneListEmpty){
				W_PhoneList = "";
				W_DateList = "";
				W_TimeList = "";
				B_DateList = "";
				B_TimeList = "";
				newProgramMode = "I";
			}else{
				if (!isSchedule){
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "W";
				}else{
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "SW";
				}
			}
		}else if (ProgramMode=="Schedule"){
			if (isPhoneListEmpty){
				W_PhoneList = "";
				W_DateList = "";
				W_TimeList = "";
				newProgramMode = "SB";
			}else{
				if (!isSchedule){
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "W";
				}else{
					if (isConflict){
						B_DateList = "";
						B_TimeList = "";
					}
					if (B_TimeList==""){
						newProgramMode = "SW";
					}else{
						newProgramMode = "Schedule";
					}
				}
			}
		}else{			//ProgramMode = B or SB
			if (isPhoneListEmpty){
				W_PhoneList = "";
				W_DateList = "";
				W_TimeList = "";
				newProgramMode = ProgramMode;
			}else{
				if (!isSchedule){
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "W";
				}else{
					if (isConflict){
						B_DateList = "";
						B_TimeList = "";
					}
					if (B_TimeList==""){
						newProgramMode = "SW";
					}else{
						newProgramMode = "Schedule";
					}
				}
			}
		}

		var B_USE = "";
		var W_USE = "";
		if ( (newProgramMode=="B") || (newProgramMode=="SB") || (newProgramMode=="Schedule") ){
			B_USE = "be";
		}else{
			B_USE = "not be";
		}
		if ( (newProgramMode=="W") || (newProgramMode=="SW") || (newProgramMode=="Schedule") ){
			W_USE = "be";
		}else{
			W_USE = "not be";
		}

		/*var MSG = "<div align='left'>Your selections will be set as :<br>" + replaceChar(W_PhoneList, ",", ", ") + " for Received Call which will " + W_USE + " used and the time slot to receive these calls is " + getSchedule(W_DateList, W_TimeList) + "<br><br>";
		MSG += "" + replaceChar(B_PhoneList, ",", ", ") + " for Denied Call which will " + B_USE + " used and the time slot to deny these calls is " + getSchedule(B_DateList, B_TimeList) + "";
		MSG += "<br><br>Please press 'Accept' to confirm your change (press 'Cancel' if you don't wish to change)";*/

		var MSG_B = "";
		var MSG_W = "";
		if (W_PhoneList != ""){
			MSG_W = replaceChar(W_PhoneList, ",", ", ") + "<b><font color='#0000FF'>for Accepted-calls</font></b> ";
			MSG_W += " which<u><b> will " + W_USE + " used</b></u>";
			if (W_DateList != ""){
				MSG_W += " and<b> the time slot to accept these calls is</b> " + getSchedule(W_DateList, W_TimeList);
			}
		}
		if (B_PhoneList != ""){
			MSG_B = replaceChar(B_PhoneList, ",", ", ") + "<b><font color='#0000FF'>for Blocked-calls</font></b> ";
			MSG_B += " which<u><b> will " + B_USE + " used</b></u>";
			if (B_DateList != ""){
				MSG_B += " and<b> the time slot to block these calls is</b> " + getSchedule(B_DateList, B_TimeList);
			}
		}
		var isFirst = true;
		var MSG = "<div align='left'>Your selections will be set as :<br>";
		if (MSG_W != ""){
			isFirst = false;
			MSG += MSG_W;
		}
		if (MSG_B != ""){
			if (!isFirst){
				MSG += "<br><br>";
			}
			isFirst = false;
			MSG += MSG_B;
		}
		if (isFirst){
			MSG += "No setting <b><font color='#0000FF'>for Accepted-calls</font></b><br>No setting <b><font color='#0000FF'>for Blocked-calls </font></b><br>(You can receive every call)";
		}
		MSG += "<br><br>Please press 'OK' to confirm your change (press 'Cancel' if you don't wish to change)";

		d.hdConfirmMsg.value = MSG;
		d.action = "/bp3/bin/Dspc/CallScreeningSetting";
		var w = 400;
		//var h = 300;
		var h = 380;
		var l = (screen.width - w) / 2; 
		var t = (screen.height - h ) / 2; 
		window.open("/bp3/bin/Dspc/CallScreeningConfirm?mode=10&lang=E", "CallScreeningConfirm10", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);
		return;
	}
</script>
</head>
<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway">
	<A href="/bp3/bin/DpromptIndex" class="link2">Web Service</A> &gt; 
	<a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> &gt;  
	Call screening service
	</div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
						
						
						<div align="center">
						
						
						<form name="form1" method="post" action="/bp3/bin/Dspc/CallScreeningSetting">
						<input type="hidden" name="hdConfirmMsg" value="">
						<input type="hidden" name="hdConfirmMsg2" value="">
						<input type="hidden" name="CanSave" value="">
						<input type="hidden" name="mode" value="W">
						<input type="hidden" name="CSMode" value="<!--SVLT.VAR:CSMode-->">
						<input type="hidden" name="MaxPhone" value="<!--SVLT.VAR:MaxPhone-->">
						<input type="hidden" name="ProgramMode" value="<!--SVLT.VAR:ProgramMode-->">
						<input type="hidden" name="B_PhoneList" value="<!--SVLT.VAR:B_PhoneList-->">
						<input type="hidden" name="W_PhoneList" value="<!--SVLT.VAR:W_PhoneList-->">
						<input type="hidden" name="Schedule_B_TimeList" value="<!--SVLT.VAR:Schedule_B_TimeList-->">
						<input type="hidden" name="Schedule_W_TimeList" value="<!--SVLT.VAR:Schedule_W_TimeList-->">
						<input type="hidden" name="Schedule_B_DateList" value="<!--SVLT.VAR:Schedule_B_DateList-->">
						<input type="hidden" name="Schedule_W_DateList" value="<!--SVLT.VAR:Schedule_W_DateList-->">
						<input type="hidden" name="CurrentPhone" value="<!--SVLT.VAR:CurrentPhone-->">
						<input type="hidden" name="lang" value="E">
									<table width="650" border="0" cellspacing="0" cellpadding="0">
									  <!--SVLT.VAR:CONF_TOP-->
									  <tr> 
										<td></td>
									  </tr>
									  <tr> 
										<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr> 
											  <td width="20">&nbsp;</td>
											  <td valign="top" class="textnormal"> 
												<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
												 <br>
												<strong>Service setting </strong> <br>
												You can configure a setting for blocked-calls and accepted-calls services as follows:
												 <ul> 
												  <li>Specify up to <!--SVLT.VAR:MaxPhone--> numbers</li>
												  <li>Specify day and time period </li>
												  <li>Choose a response mode for unreceived calls</li>
											  </ul>
												 <br />  <table width="100%" border="0" cellspacing="0" cellpadding="0">
												  <tr> 
													<td align="right" background="${RESOURCE}/eng/images/14_webservice_tabline.gif"><a href="/bp3/bin/Dspc/CallScreening?page=Black" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image35','','${RESOURCE}/eng/images/no_call_on.gif',1)"><img src="${RESOURCE}/eng/images/no_call_off.gif" alt="Blocked-calls service" name="Image35" width="160" height="43" border="0"></a></td>
													<td background="${RESOURCE}/eng/images/14_webservice_tabline.gif" width="101"><img src="${RESOURCE}/eng/images/call_on.gif" alt="Accepted-calls service" width="160" height="43" border="0"></td>
													<td background="${RESOURCE}/eng/images/14_webservice_tabline.gif"><a href="/bp3/bin/Dspc/CallScreening?page=Cancel" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image39','','${RESOURCE}/eng/images/cancel_call_on.gif',1)"><img src="${RESOURCE}/eng/images/cancel_call_off.gif" alt="Cancel service" name="Image39" width="160" height="43" border="0"></a></td>
												  </tr>
												</table>
												<table width="100%" border="0" cellspacing="0" cellpadding="10" style="border:1px solid #ccc;">
												  <tr> 
													<td class="textnormal">Configure and set specified numbers will be able to reach you during a specified time period. 
													  <p><span class="textnormal_blue"><strong>Basic 
														function setting:</strong></span></p>
													  <img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12">&nbsp; <strong>Selected phone numbers</strong><br><br>
												   <span class="textnormal"> Please enter number
													  <input type="text" name="W_txtAddPhone" class="textnormal" style="width:120px" maxlength="10" onkeyup='onlyNumber(this);' onblur='onlyNumber(this);'>
													<a href="javascript:W_AddPhone()">  <img src="${RESOURCE}/eng/images/14_webservice_add.gif" width="58" height="23" border="0" id="W_btnAdd" style="display:"> </a></span>
													  <br> <span class="textnormal_s2">(Enter 10-digit mobile number or 9-digit fixed line number with 0 prefix)</span><br /> <br />
													   <div class="textnormal" ID="W_Phone">
														</div>
														<br>
													  <a href="javascript:W_DeleteAllPhone()"><img src="${RESOURCE}/eng/images/14_webservice_delete_all.gif" border="0" id="W_btnDeleteAll" style="display:"></a><br /> 
													  <p>
													   <img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12">&nbsp; <strong>Choose a response mode for unreceived calls</strong><br />
													  </p>
													  <ul>
													  <input name="W_Destination" type="radio" class="radio" onClick="W_ClearPromptID()" value="Busytone" <!--SVLT.VAR:W_Destination_BT-->> Busy tone <br />
													  <input name="W_Destination" type="radio" class="radio" onClick="W_ClearPromptID()" value="Voicemail" <!--SVLT.VAR:W_Destination_VM-->> Voice mail system <br />
													  <input name="W_Destination" type="radio" class="radio" value="Reject" <!--SVLT.VAR:W_Destination_FW-->> Pre-recorded voice message system: You can select a voice message appropriate for a certain time period as follows: <br />
														<BLOCKQUOTE><table class="textnormal"><tr><td class="textnormal">Select a message                    
						<select name="W_PromptID" class="textnormal" onChange="W_SelectDestinationReject()">
						  <option value="">Please select a message</option>
						  <!--SVLT.LOOP:W_PromptID-->
						  <option value="<!--SVLT.VAR:Value-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
						  <!--SVLT.END:W_PromptID-->
						</select>
																<a href="javascript:W_Listen()"><img src="${RESOURCE}/eng/images/listen.gif" border="0"></a> 
																<select name="W_PromptID_LongDesc" style="display : none;">
						  <option value=""></option>
						  <!--SVLT.LOOP:W_PromptID_LongDesc-->
						  <option value="<!--SVLT.VAR:Value-->">&nbsp;</option>
						  <!--SVLT.END:W_PromptID_LongDesc-->
						</select><br>
						<tr><td class="textnormal"><span ID="W_PromptID_LongDesc_Show"></span></table></BLOCKQUOTE>
														<br />
														 <input name="W_BSMSTemplateID" type="checkbox" class="radio" value="<!--SVLT.VAR:W_BSMSTemplateID_Value-->" <!--SVLT.VAR:W_BSMSTemplateID-->>
													   Choose to receive SMS notification of unreceived calls. SMS fee is 1 baht per unreceived call. Special offer! Free SMS until 31 December 2010
													  </ul>
													  <br />  <span><a href="#1" class="textnormal_blue"  onclick="W_AdvanceFunction()"><strong>Advanced Function setting : Choose to answer calls during specified day/time period</strong></a></span> 
													  <table width="100%" border="0" cellpadding="0" cellspacing="0" id="W_AdvFunc" style="display:none">
														<tr> 
														  <td>
						<table width="90%" border="0" align="center" cellspacing="0">
															  <tr> 
																<td width="294%" colspan="4" valign="top" class="textnormal"> 
																   <input name="W_Schedule" type="radio" class="radio" value="OFF" onClick="W_ClearSchedule()" <!--SVLT.VAR:W_Schedule_OFF-->> Choose service 24 hours everyday </td>
															  </tr>
															  <tr> 
																<td colspan="4" class="textnormal"> <input name="W_Schedule" type="radio" class="radio" value="ON" onClick="W_SelectDefaultSchedule()" <!--SVLT.VAR:W_Schedule_ON-->> Choose service during specified day/time period </td>
															  </tr>
															</table><br>
															<table width="90%" border="0" align="center" cellspacing="0">
															  <tr> 
																<td>&nbsp;</td>
																<td>&nbsp;</td>
																<td>&nbsp;</td>
																<td>&nbsp;</td>
															  </tr>
															  <tr> 
																<td width="3%"><strong><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></strong></td>
																<td width="38%"><strong>Choose 
																  day period </strong></td>
																<td width="58%">&nbsp;</td>
																<td width="1%">&nbsp;</td>
															  </tr>
															  <tr> 
																<td colspan="4" valign="top" class="textnormal"> <input name="W_Days" type="radio" class="radio" value="MF" onClick="W_ClearDay()" <!--SVLT.VAR:W_Days_MF-->>
																 Monday-Friday</td>
															  </tr>
															  <tr> 
																<td colspan="4" class="textnormal"><input name="W_Days" type="radio" class="radio"  value="SS" onClick="W_ClearDay()"  <!--SVLT.VAR:W_Days_SS-->>
																  Saturday-Sunday</td>
															  </tr>
															  <tr> 
																<td colspan="4" class="textnormal"><input name="W_Days" type="radio" class="radio" value="SP" onClick="W_SelectSchedule()" <!--SVLT.VAR:W_Days_SP-->>
																  Choose a specific day </td>
															  </tr>
															  <tr> 
																<td>&nbsp;</td>
																<td colspan="3"><table width="100%" cellpadding="3" cellspacing="0" style="border:1px solid #ccc;">
																	<tr class="textnormal"> 
																	  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
																		  <tr class="textnormal"> 
																			<td width="20" ><input name="W_Day_0" type="checkbox" class="radio" value="Monday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Monday-->></td>
																			<td width="60" class="textnormal">Monday</td>
																			<td width="20"><input name="W_Day_1" type="checkbox" class="radio" value="Tuesday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Tuesday-->></td>
																			<td width="68" class="textnormal">Tuesday</td>
																			<td width="20"><input name="W_Day_2" type="checkbox" class="radio" value="Wednesday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Wednesday-->></td>
																			<td width="54" class="textnormal">Wednesday</td>
																			<td width="20"><input name="W_Day_3" type="checkbox" class="radio" value="Thursday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Thursday-->></td>
																			<td width="78" class="textnormal">Thursday</td>
																			<td width="20"><input name="W_Day_4" type="checkbox" class="radio" value="Friday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Friday-->></td>
																			<td width="58" class="textnormal">Friday</td>
																			<td width="20"><input name="W_Day_5" type="checkbox" class="radio" value="Saturday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Saturday-->></td>
																			<td width="61" class="textnormal">Saturday </td>
																			<td width="20"><input name="W_Day_6" type="checkbox" class="radio" value="Sunday" onClick="W_SelectSpecificDate()" <!--SVLT.VAR:W_Day_Sunday-->></td>
																			<td width="62" class="textnormal">Sunday</td>
																		  </tr>
																		</table></td>
																	</tr>
																  </table></td>
															  </tr>
															</table>
															<br /> <br /> <table width="90%" border="0" align="center" cellspacing="0">
															  <tr> 
																<td width="3%" valign="top"><strong><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></strong></td>
																<td class="textnormal"><strong>Choose time period </strong> 
																  (Chosen time period cannot overlap blocked-calls period)</td>
																<td width="1%">&nbsp;</td>
															  </tr>
															  <tr> 
																<td colspan="3" valign="top" class="textnormal"><input name="W_Time" type="radio" class="radio" value="AT" onClick="W_ClearTimeList()" <!--SVLT.VAR:W_Time_AT-->> Choose 24 hours (all day)</td>
															  </tr>
															  <tr> 
																<td colspan="3" class="textnormal"><input name="W_Time" type="radio" class="radio" value="SP" onClick="W_SelectSchedule()" <!--SVLT.VAR:W_Time_SP-->> Choose a time period, up to two periods </td>
															  </tr>
															  <tr> 
																<td colspan="3">&nbsp;</td>
															  </tr>
															  <tr> 
																<td>&nbsp;</td>
																<td colspan="2" class="textnormal">Period 1
																  <select name="W_TimeList_1" class="textnormal" onChange="W_CheckConfigTime(this)">
										<!--SVLT.LOOP:W_TimeList_1-->
										<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
										<!--SVLT.END:W_TimeList_1-->
									</select>
																  - 
																  <select name="W_TimeList_2" class="textnormal" onChange="W_CheckConfigTime(this)">
									  <!--SVLT.LOOP:W_TimeList_2-->
										<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
										<!--SVLT.END:W_TimeList_2-->
									</select>
																 <a href="javascript:W_ClearTime12()"> <img src="${RESOURCE}/eng/images/04_station_credit_delete.gif" border="0"> </a>
																</td>
															  </tr>
															  <tr> 
																<td>&nbsp;</td>
																<td colspan="2">&nbsp;</td>
															  </tr>
															  <tr> 
																<td>&nbsp;</td>
																<td colspan="2" class="textnormal">Period 2
																 <select name="W_TimeList_3" class="textnormal" onChange="W_CheckConfigTime(this)">
										<!--SVLT.LOOP:W_TimeList_3-->
										<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
										<!--SVLT.END:W_TimeList_3-->
									</select>
																  - 
																  <select name="W_TimeList_4" class="textnormal" onChange="W_CheckConfigTime(this)">
									  <!--SVLT.LOOP:W_TimeList_4-->
										<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
										<!--SVLT.END:W_TimeList_4-->
									</select>
																  <a href="javascript:B_ClearTime34()"><img src="${RESOURCE}/eng/images/04_station_credit_delete.gif" border="0"> </a>
																</td>
															  </tr>
															</table>
															<div class="textnormal"><br />
															  You can receive calls 
															  as usual during a day/time 
															  period other than what 
															  is specified.<br/>
															</div></td>
														</tr>
													  </table>
													  <table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr> 
														  <td align="right">&nbsp;</td>
														  <td>&nbsp;</td>
														</tr>
														<tr> 
														  <td align="right"><a href="javascript:W_Submit()"><img src="${RESOURCE}/eng/images/04_station_credit_record_s.gif" border="0" ></a>&nbsp;</td>
														  <td><a href="javascript:document.form1.reset();"><img src="${RESOURCE}/eng/images/04_station_credit_cancel.gif" border="0"></a></td>
														</tr>
													  </table></td>
												  </tr>
												</table>
												</td>
											  <td width="20">&nbsp;</td>
											</tr>
										  </table></td>
									  </tr>
									  <tr> 
										<td>&nbsp;</td>
									  </tr>
									  <tr> 
										<td height="15" align="center"><br></td>
									  </tr>
									  <!--SVLT.VAR:CONF_BOTTOM-->
									</table>
								  </form> 
						
						
						</div>
						
						
						</td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
